package com.yj.model.comm;

public class PageBean {

	private Integer page;
	private Integer rows;
	private Integer beginRowNum;
	private Integer endRowNum;
	private Integer isPage;

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getRows() {
		return rows;
	}

	public void setRows(Integer rows) {
		this.rows = rows;
	}

	public Integer getBeginRowNum() {
		return beginRowNum;
	}

	public void setBeginRowNum(Integer beginRowNum) {
		this.beginRowNum = beginRowNum;
	}

	public Integer getEndRowNum() {
		return endRowNum;
	}

	public void setEndRowNum(Integer endRowNum) {
		this.endRowNum = endRowNum;
	}

	public Integer getIsPage() {
		return isPage;
	}

	public void setIsPage(Integer isPage) {
		this.isPage = isPage;
	}

	/**
	 * 要分页的地方，初始化分页
	 *
	 */
	public void initPage() {
		this.setBeginRowNum(this.getRows() * (this.getPage() - 1));
		this.setEndRowNum(this.getRows());
		this.setIsPage(1);
	}
}
